# -*- coding:utf-8 -*-
# __author__ : "张百科"
# Date: 2021/1/26 15:32
# File: constructionlogs.py
# IDE: PyCharm
from django.db import models
from utils.common import prefix
from utils.choices import construction_process

class ConstructionLogs(models.Model):
    id = models.AutoField(db_column='ID', primary_key=True)  # Field name made lowercase.
    construction_id = models.IntegerField()
    process = models.IntegerField(choices=construction_process)
    remark = models.CharField(max_length=500, blank=True, null=True)
    images = models.TextField(blank=True, null=True)   #大字段
    create_time = models.DateTimeField(auto_now=True)
    record_user = models.CharField(max_length=20)
    is_delete=models.IntegerField(default=0)

    class Meta:
        managed = False
        db_table = prefix+'construction_logs'